package com.ltkj.shop.service;

import java.util.List;
import com.ltkj.shop.domain.ShopPostageConfig;
import com.ltkj.shop.domain.vo.ShopPostageConfigVo;

/**
 * 邮费配置Service接口
 * 
 * @author xupf
 * @date 2023-08-29
 */
public interface IShopPostageConfigService 
{
    /**
     * 查询邮费配置
     * 
     * @param id 邮费配置主键
     * @return 邮费配置
     */
    public ShopPostageConfig selectShopPostageConfigById(Long id);

    /**
     * 查询邮费配置列表
     * 
     * @param shopPostageConfig 邮费配置
     * @return 邮费配置集合
     */
    public List<ShopPostageConfig> selectShopPostageConfigList(ShopPostageConfig shopPostageConfig);

    /**
     * 新增邮费配置
     * 
     * @param shopPostageConfig 邮费配置
     * @return 结果
     */
    public int insertShopPostageConfig(ShopPostageConfig shopPostageConfig);

    /**
     * 修改邮费配置
     * 
     * @param shopPostageConfig 邮费配置
     * @return 结果
     */
    public int updateShopPostageConfig(ShopPostageConfig shopPostageConfig);

    /**
     * 批量删除邮费配置
     * 
     * @param ids 需要删除的邮费配置主键集合
     * @return 结果
     */
    public int deleteShopPostageConfigByIds(Long[] ids);

    /**
     * 删除邮费配置信息
     * 
     * @param id 邮费配置主键
     * @return 结果
     */
    public int deleteShopPostageConfigById(Long id);

    /**
     * 根据收货地址编码精确获取运费
     * @param shopPostageConfigVo
     * @return
     */
    ShopPostageConfig selectShopPostageConfigByCode(ShopPostageConfigVo shopPostageConfigVo);
}
